package com.wsx.ones.akka.domian;

import com.wsx.ones.api.OnesResponse;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author wangshuaixin
 * @Title: com.wsx.ones.akka.domian.AkkaResponse
 * @Description: TODO
 * @date 2019/05/10
 */
@NoArgsConstructor
public class AkkaResponse extends OnesResponse {

    @Setter @Getter private Data data;

    public AkkaResponse(int code) {
        super(code);
    }

    public AkkaResponse data(Data data) {
        this.data = data;
        return this;
    }
}
